<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>

<table class=" form-table">
	<tr>
		<td class="header" align="center" style="height:35px">工单类型</td>
		<td class="header" align="center">工单数量</td>
	</tr>
	<tr>
		<td class="td2" align="center" style="height:35px">事件单</td>
		<td class="td2" align="center" style="height:35px"><a
			onclick="openDetail('${projectId}','incident')" target="_blank"><span
				style="color: blue">${incident_sum}</span> </a></td>
	</tr>
	<tr>
		<td class="td2" align="center" style="height:30px">问题单</td>
		<td class="td2" align="center" style="height:30px"><a
			onclick="openDetail('${projectId}','problem')"><span
				style="color: blue">${problem_sum}</span> </a>
		</td>

	</tr>
	<tr>
		<td class="td2" align="center" style="height:30px">变更单</td>
		<td class="td2" align="center" style="height:30px"><a
			onclick="openDetail('${projectId}','change')"><span
				style="color: blue">${change_sum}</span> </a>
		</td>

	</tr>
	<tr>
		<td class="td2" align="center" style="height:30px">发布单</td>
		<td class="td2" align="center" style="height:30px"><a
			onclick="openDetail('${projectId}','release')"><span
				style="color: blue">${release_sum}</span> </a>
		</td>

	</tr>
	<tr>
		<td class="td2" align="center" style="height:30px">任务单</td>
		<td class="td2" align="center" style="height:30px"><a
			onclick="openDetail('${projectId}','task')"><span
				style="color: blue">${task_sum}</span> </a>
		</td>
	</tr>
</table>
<script type="text/javascript">
	function openDetail(projectId, type) {
		var url = "";
		if (type == 'incident') {
			url = "incident/search/manageView?projectId=${projectId}";
		} else if (type == 'problem') {

		} else if (type == 'change') {
		} else if (type == 'release') {
		} else if (type == 'task') {
		}
		isperp.openDialog({
			contentUrl : url
		});
		return false;
	}
</script>
